// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.trip;
/**
 * @see com.jrsystems.fleet.trip.Route
 */
public class RouteDaoImpl
    extends com.jrsystems.fleet.trip.RouteDaoBase
{
    /**
     * @see com.jrsystems.fleet.trip.RouteDao#toRouteVO(com.jrsystems.fleet.trip.Route, com.jrsystems.fleet.trip.vo.RouteVO)
     */
    public void toRouteVO(
        com.jrsystems.fleet.trip.Route source,
        com.jrsystems.fleet.trip.vo.RouteVO target)
    {
        // @todo verify behavior of toRouteVO
        super.toRouteVO(source, target);
        // WARNING! No conversion for target.vehicle (can't convert source.getVehicle():com.jrsystems.fleet.vehicle.Vehicle to com.jrsystems.fleet.vehicle.vo.VehicleVO
        // WARNING! No conversion for target.routeEnd (can't convert source.getRouteEnd():com.jrsystems.jrbase.location.Location to com.jrsystems.jrbase.location.vo.LocationVO
        // WARNING! No conversion for target.routeStart (can't convert source.getRouteStart():com.jrsystems.jrbase.location.Location to com.jrsystems.jrbase.location.vo.LocationVO
    }


    /**
     * @see com.jrsystems.fleet.trip.RouteDao#toRouteVO(com.jrsystems.fleet.trip.Route)
     */
    public com.jrsystems.fleet.trip.vo.RouteVO toRouteVO(final com.jrsystems.fleet.trip.Route entity)
    {
        // @todo verify behavior of toRouteVO
        return super.toRouteVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.trip.Route loadRouteFromRouteVO(com.jrsystems.fleet.trip.vo.RouteVO routeVO)
    {
        // @todo implement loadRouteFromRouteVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.trip.loadRouteFromRouteVO(com.jrsystems.fleet.trip.vo.RouteVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.trip.Route route = this.load(routeVO.getId());
        if (route == null)
        {
            route = com.jrsystems.fleet.trip.Route.Factory.newInstance();
        }
        return route;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.trip.RouteDao#routeVOToEntity(com.jrsystems.fleet.trip.vo.RouteVO)
     */
    public com.jrsystems.fleet.trip.Route routeVOToEntity(com.jrsystems.fleet.trip.vo.RouteVO routeVO)
    {
        // @todo verify behavior of routeVOToEntity
        com.jrsystems.fleet.trip.Route entity = this.loadRouteFromRouteVO(routeVO);
        this.routeVOToEntity(routeVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.trip.RouteDao#routeVOToEntity(com.jrsystems.fleet.trip.vo.RouteVO, com.jrsystems.fleet.trip.Route)
     */
    public void routeVOToEntity(
        com.jrsystems.fleet.trip.vo.RouteVO source,
        com.jrsystems.fleet.trip.Route target,
        boolean copyIfNull)
    {
        // @todo verify behavior of routeVOToEntity
        super.routeVOToEntity(source, target, copyIfNull);
    }

}